import request from '@/utils/request'
const serviceName = 'Device'
//  列表
export function queryPatrols(data) {
  return request({
    url: serviceName + '/Patrol/QueryPatrols',
    method: 'post',
    data
  })
}
//  详情
export function getPatrol(data) {
  return request({
    url: serviceName + '/Patrol/GetPatrol',
    method: 'post',
    data
  })
}
//  新增 修改
export function savePatrol(data) {
  return request({
    url: serviceName + '/Patrol/SavePatrol',
    method: 'post',
    data
  })
}
//  删除
export function deletePatrols(data) {
  return request({
    url: serviceName + '/Patrol/DeletePatrols',
    method: 'post',
    data
  })
}

export default {
  queryPatrols,
  getPatrol,
  savePatrol,
  deletePatrols
}
